@extends('layouts.web')

@section('title', '网站分类目录提交_免费网站目录外链_'.env('APP_NAME').'_我们只推荐好网站')
@section('keywords', env('APP_NAME').','.env('APP_NAME').'资讯,网站综合查询,免费网站目录外链')
@section('description', '免费获取的网站流量也是中小网站和新网站推广首选网络推广服务平台！'.env('APP_NAME').'给大家提供国内外网址大全，整理和收藏网站导航！您也可以在我们的免费发布自己的网站及网站相关信息！')

@section('content')
    <div class="main-container">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md12 layui-hide-xs">
                <div class="layui-card">
                    <div class="layui-card-body site-list-body">
                        <ul class="index-text-link" id="index-text-ad">
                            <li class="link_color_04"><a href="{{ url('site') }}" target="_blank">{{ env('APP_NAME') }}网</a></li>
                            <li class="link_color_02"><a href="{{ url('article') }}" target="_blank">{{ env('APP_NAME') }}资讯</a></li>
                            <li class="link_color_03"><a href="{{ url('top') }}" target="_blank">{{ env('APP_NAME') }}排行榜</a></li>
                            <li class="link_color_04"><a href="{{ url('article/154') }}" target="_blank">{{ env('APP_NAME') }}seo</a></li>
                            <li class="link_color_01"><a href="{{ url('article/153') }}" target="_blank">{{ env('APP_NAME') }}IT业界</a></li>
                            <li class="link_color_03"><a href="{{ url('article/151') }}" target="_blank">网站运营</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            @if($newest)
            <div class="layui-col-md12">
                <div class="layui-card margin-bottom-0">
                    <div class="layui-card-header">最新入站 <span class="layui-hide-xs">从贵站来访，贵站自动排第一</span></div>
                    <div class="layui-card-body site-list-body">
                        <ul class="index-site-list" id="site-tips">
                            @foreach($newest as $v)
                                <li>
                                    <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" blood-title="进入本站 {{ $v->views }} 次" target="_blank">
                                    
                                        {{ str_limit($v->name,'10') }}
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
            @endif
            @if($tags)
                <div class="layui-col-md12 layui-hide-xs">
                    <div class="index-site-rand-cloud layui-hide-xs">
                        @foreach($tags as $v)
                            <a href="{{ url('/tags/'.$v->name) }}/" title="{{ $v->name }}" target="_blank">{{ str_limit($v->name,'10') }}</a>
                        @endforeach
                    </div>
                </div>
            @endif
            @if($nav_area)
                <div class="layui-col-md12 layui-hide-xs">
                    <div class="layui-card">
                        <div class="layui-card-body index-areas">
                            <ul>
                                @foreach($nav_area as $v)
                                    <li>
                                        <a href="{{ url('/area/'.$v->name) }}/" title="{{ $v->name }}" target="_blank">
                                            <img src="{{ hostStr('city/'.$v->id) }}.png" alt="{{ $v->name }}" class="areas-image">
                                            <p class="areas-content">{{ $v->name }}</p>
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            @endif
            @if($is_best)
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">推荐置顶网站</div>
                        <div class="layui-card-body related">
                            <div class="layui-row layui-col-space15">
                                @foreach($is_best as $v)
                                    <div class="layui-col-md2 layui-col-xs6">
                                        <div class="site clearfix">
                                            <div class="siteImg">
                                                <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}" target="_blank">
                                                    <img class="load" alt="{{ $v->name }}" src="{{ env('IMG_URL') }}/files/loading.gif" lay-src="{{ hostStr('shot/'.$v->url) }}.jpg">
                                                </a>
                                            </div>
                                            <h3 class="title">
                                                <a href="{{ url('/siteinfo-'.$v->id.'.html') }}" title="{{ $v->name }}" target="_blank">
                                                    {{ $v->name }}
                                                </a>
                                            </h3>
                                        </div>
                                    </div>
                                @endforeach
                            </div>
                        </div>
                    </div>
                </div>
            @endif
            @foreach($col as $v)
                <div class="layui-col-md3">
                    <div class="layui-card clearfix">
                        <div class="layui-card-header">
                            <a href="{{ url('/site/'.$v->id) }}/" title="{{ $v->title }}" target="_blank">{{ $v->title }}</a>
                            @if($v->indexChildren($v->id))
                                <ul>
                                    @foreach($v->indexChildren($v->id) as $vv)
                                        <li>
                                            <a href="{{ url('/site/'.$vv->id.'/son/'.$v->id) }}/" title="{{ $vv->title }}" target="_blank">{{ $vv->title }}</a>
                                        </li>
                                    @endforeach
                                </ul>
                            @endif
                        </div>
                        @if($v->indexSite($v->id))
                            <div class="layui-card-body site-list-body">
                                <ul class="index-site-list root-site-list-min">
                                    @foreach($v->indexSite($v->id) as $vv)
                                        <li>
                                            <a href="{{ url('/siteinfo-'.$vv->id.'.html') }}" title="{{ $vv->name }}" target="_blank">
                                                {{ $vv->name }}
                                            </a>
                                        </li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif
                    </div>
                </div>
            @endforeach
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">
                        <a href="{{ url('/article/') }}">最新资讯</a>
                        <ul class="layui-hide-xs">
                            @foreach($col_art as $v)
                                <li>
                                    <a href="{{ url('/article/'.$v->id) }}/" title="{{ $v->title }}" target="_blank">
                                        {{ $v->title }}
                                    </a>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                    <div class="layui-card-body site-list-body article-list-new index-arc-list">
                        <ul>
                            @foreach($articles as $v)
                                <li>
                                    <a href="{{ url('/artinfo-'.$v->id.'.html') }}" title="{{ $v->title }}" target="_blank">
                                        {{ $v->title }}
                                    </a>
                                    <span>{{ $v->updated_at->format('m-d') }}</span>
                                </li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body site-list-body article-list-new index-arc-list">
                        <script id="w2898_13260">(function () {var zy = document.createElement("script");var flowExchange = window.location.protocol.split(":")[0];var http = flowExchange === "https"?"https":"http";zy.src = http+"://exchange.2898.com/index/flowexchange/getGoods?id=13260&sign=aba94dd847114a9b51888295e528c5f1";var s = document.getElementsByTagName("script");for(var i=0;i< s.length;i++){if(s[i].id){if(s[i].id == "w2898_13260"){s[i].parentNode.insertBefore(zy, s[i]);continue;}}}})();</script>
                    </div>
                </div>
            </div>
            @if($links)
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body link-list">
                            <ul>
                                <li class="link-title">友情链接：</li>
                                @foreach($links as $v)
                                    <li>
                                        <a href="{{ $v->url }}" title="{{ $v->info }}" target="_blank">
                                            {{ $v->name }}
                                        </a>
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            @endif
        </div>
    </div>
@endsection
